<% include file="header.html" %>
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			
			
			<!-- Page Head -->
			<h2>欢迎来到广告发布系统</h2><p class="clear"></p>
			
			
			<ul class="shortcut-buttons-set" style="display:none;">
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/pencil_48.png" alt="icon" /><br />
					Write an Article
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/paper_content_pencil_48.png" alt="icon" /><br />
					Create a New Page
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/image_add_48.png" alt="icon" /><br />
					Upload an Image
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/clock_48.png" alt="icon" /><br />
					Add an Event
				</span></a></li>
				
				<li><a class="shortcut-button" href="#messages" rel="modal"><span>
					<img src="images/icons/comment_48.png" alt="icon" /><br />
					Open Modal
				</span></a></li>
				
			</ul><!-- End .shortcut-buttons-set -->
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>关键词搜索</h3>
					
					<div class="clear"></div>
					
			  </div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						<div style="margin-bottom:10px;"><form action="index.php?do=article.show" method="post">
                                       	 <input class="text-input small-input" type="text" name="v" value="<% $v %>" style=" background: url(../images/bg-form-field.gif) repeat-x scroll left top #FFFFFF; border: 1px solid #D5D5D5; color: #333333;font-size: 13px;padding: 6px;-moz-border-radius: 4px 4px 4px 4px;"/>	
                                        <input class="button" type="submit" value="搜索" />  
                                     </form></div>
                        <div class="active" style="padding:18px 0;float: left;clear: both;width: 800px;margin-right: 10px;margin-left: 0px; height:auto;  margin-bottom:10px;">
              			<div class="frame_titlte2">最新 Keyword广告 列表</div>
						<table class="table_list">
							<thead>
								<tr>
								   <th style="border-right:none;">ID</th>
								   <th style="border-right:none;">Title</th>
								   <th style="border-right:none;">PV</th>
                                   <th style="border-right:none;">Tags</th>
                                   <th style="border-right:none;">Link</th>
                                   <th style="border-right:none; width:136px;">是否被KW广告投放</th>
                                   <th style="border-right:none; width:136px;">是否被VBC广告投放</th>
								</tr>
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="11" >
										<div class="pagination">
											<!--  分页 -->
										</div>
										 <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
							<%if $articleList|@count>0 %>
								<% section name=obj loop=$articleList %>
								<tr>
									<td><% $articleList[obj].id %></td>
									<td><% $articleList[obj].title %></td>
									<td><% $articleList[obj].pv %></td>
									<td><% $articleList[obj].tags %></td>
									<td><a target="_blank" href="<% $articleList[obj].link %>">GO</a></td>
									<td><% if $articleList[obj].byKW == 1 %>已被投放<% /if %></td>
									<td style="border-right:none;"><% if $articleList[obj].byVBC == 1 %>已被投放<% /if %></td>
								</tr>
                                <%/section %>
                            <%/if%>
							</tbody>
							
						</table>
                        </div>
                        <div class="display_frame" style="width:200px; float:right;">
                          <div class="frame_titlte">Top 10 Keywords</div>
                          <%if $top10|@count>0 %>
								<% section name=obj loop=$top10 %>
                                <div>
                                    <div class="display_frame1"><% $smarty.section.obj.index_next ) %>.</div>
                                    <div class="display_frame2"><%  $top10[obj] %></div>
                                </div>
                                <%/section %>
                            <%/if%>
                          
                        </div>
					</div> <!-- End #tab1 -->
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
<% include file="footer.html" %>
